package com.base.commonlib.utils;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AlertDialog;
import android.widget.TextView;

import com.base.commonlib.R;


/**
 * Date：2019/4/10 下午6:45
 * Creator：arvin
 * Des：
 */

public class PbMsgDialog extends AlertDialog {

    private TextView mMsg;
    private String mString;

    public PbMsgDialog(@NonNull Context context, String msg) {
        super(context,R.style.dialog);
        mString=msg;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.view_pb_msg);
        mMsg = findViewById(R.id.tv);
        mMsg.setText(mString);

    }
    public void setMsg(String msg)
    {
        mMsg.setText(msg);
    }
}
